
package com.scalar.chiptrack.alarms;

public final class AlarmUser {
      
    private String m_userName = null;
    private String m_email = null;
    private String m_from = null;
    private String m_response = null;
    private int m_level = -1;
    private int m_alarmId = -1;
    private long m_alarmCreatedOn = -1;
    private long m_respondBefore = -1;
    
    
    public AlarmUser (String userName, String email) {
        m_userName = userName;
        m_email = email;
        m_response = Alarm.ALARM_RESPONSE_NOT_RESPONDED_YET;
        m_level = 1;
    }
    public AlarmUser (String userName, String email, String response) {
        m_userName = userName;
        m_email = email;
        if ( response != null)
        {
            m_response = response;
        }
        else
        {
            m_response = Alarm.ALARM_RESPONSE_NOT_RESPONDED_YET;
        }

        m_level = 1;
    }

    public AlarmUser (String userName, String email, String from, String response, int level) {
        m_userName = userName;
        m_email = email;
        m_from = from;
        m_response = response;
        m_level = level;
    }
    
    public AlarmUser (String userName, String email, String from, String response, int level, int alarmId) {
        m_userName = userName;
        m_email = email;
        m_from = from;
        m_response = response;
        m_level = level;
        m_alarmId = alarmId;
    }
    
    public String getName() {
        return m_userName;
    }
    public void setName (String name) {
        m_userName = name;
    }
    
    public String getEmail() {
        return m_email;
    }
    public void setEmail (String email) {
        m_email = email;
    }
    
    public void setOriginator (String from) {
        m_from = from;
    }
    public String getOriginator() {
        return m_from;
    }
    
    public String getResponse() {
        return m_response;
    }
    public void setResponse (String response) {
        m_response = response;
    }
    
    public void setLevel (int level) {
        m_level = level;
    }
    public int getLevel() {
        return m_level;
    }
    
    public int getAlarmId() {
        return m_alarmId;
    }
    public void setAlarmId (int alarmId) {
        m_alarmId = alarmId;
    }
    
    public long getAlarmCreatedTime() {
        return m_alarmCreatedOn;
    }
    public void setAlarmCreatedTime (long createdOn) {
        m_alarmCreatedOn = createdOn;
    }
    
    public long getRespondBefore() {
        return m_respondBefore;
    }
    public void setRespondBefore (long respondBefore) {
        m_respondBefore = respondBefore;
    }
}